// JetAnalyzerDlg.h : header file
//

#if !defined(AFX_JETANALYZERDLG_H__AA3964EA_6C94_48A7_A28C_831A51F1053C__INCLUDED_)
#define AFX_JETANALYZERDLG_H__AA3964EA_6C94_48A7_A28C_831A51F1053C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


#include "JetContainer.h"




/////////////////////////////////////////////////////////////////////////////
// CJetAnalyzerDlg dialog

class CJetAnalyzerDlg : public CDialog
{
// Construction
public:
	CJetAnalyzerDlg(CWnd* pParent = NULL);	// standard constructor
	~CJetAnalyzerDlg();

public:
	static void JetStatusChangeCallback_Proxy(UINT32 param, JET_STAT_TYPE type);
	void JetStatusChangeCallback(JET_STAT_TYPE type);

	int String2Digit(CString cs);

// Dialog Data
	//{{AFX_DATA(CJetAnalyzerDlg)
	enum { IDD = IDD_JETANALYZER_DIALOG };
	CString	m_csSourceFile;
	CString	m_csVideoPID;
	CString	m_csServiceID;
	CString	m_csPrivatePID;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CJetAnalyzerDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	CJetContainer m_Jet;

	void AdjustDropListSize(CComboBox *cb);
	void UpdateProgressState(void);
	void SetVideoPidList(int nPid, int *PidList);


	// Generated message map functions
	//{{AFX_MSG(CJetAnalyzerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSourceFileBrowse();
	afx_msg void OnPlay();
	virtual void OnCancel();
	afx_msg void OnSourceFileLoad();
	afx_msg void OnStop();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnKillFocusServiceId();
	afx_msg void OnSelChangeServiceId();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_JETANALYZERDLG_H__AA3964EA_6C94_48A7_A28C_831A51F1053C__INCLUDED_)
